package com.itheima.capsulation;

public class Test1 {

    public static void main(String[] args) {

        //封装的思想：合理隐藏，合理公开
        Dog d = new Dog();
        d.setAge(10);
        System.out.println(d.getAge());

    }
}
